package com.wjh.kt_vod.controller.api;

import com.wjh.kt_vod.model.vod.Teacher;
import com.wjh.kt_vod.result.Result;
import com.wjh.kt_vod.service.TeacherService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Wang_Junhong
 * 2022/7/20
 * 文件描述：
 */

@RestController
@RequestMapping("/api/vod/teacher")
public class TeacherApiController {

    @Autowired
    private TeacherService teacherService;

    @ApiOperation(value = "根据id查询讲师")
    @GetMapping(value = "/inner/getTeacherById/{id}")
    public Teacher getTeacherInfo(@PathVariable("id") long id) {
        return teacherService.getById(id);
    }

}
